import peewee
import peewee_async

from settings import db_mysql as db


database = peewee_async.PooledMySQLDatabase(
    'alexdb', host='127.0.0.1', port=3306,
    user='root', password=''
)


class BaseModel(peewee.Model):

    class Meta:
        database = database
